//
//  ThemeFactory.h
//  Pods
//
//  Created by baboy on 2019/2/18.
//

#ifndef ThemeFactory_h
#define ThemeFactory_h
#import "Theme.h"
@interface ThemeFactory : NSObject
+ (UIBarButtonItem *) navBarButtonForKey:(NSString *)key;
+ (UIBarButtonItem *) navBarButtonForKey:(NSString *)key withTarget:(id)target action:(SEL)action;
+ (UIButton *) buttonForKey:(NSString *)key;
+ (UIButton *) buttonForKey:(NSString *)key withTarget:(id)target action:(SEL)action;
+ (UIButton *) buttonWithTitle:(NSString *)title background:(NSString *)imageName  target:(id)target action:(SEL)action;
+ (void) setButtonDefaultStyle:(UIButton *)button;
+ (void) setButtonPrimaryStyle:(UIButton *)button;

+ (UILabel *) labelForStyle:(NSString *)style;

+ (UIButton *) buttonForStyle:(NSString *)style withTitle:(NSString *)title frame:(CGRect)frame target:(id)target action:(SEL)action;
+ (UIBarButtonItem *) navButtonForStyle:(NSString *)style withTitle:(NSString *)title frame:(CGRect)frame target:(id)target action:(SEL)action;

@end

extern void setButtonImage(UIButton *button,NSString *imageName, NSString *imageName2, BOOL isBackground);
extern UIButton *createButton(CGRect frame, NSString *title, id imgName,id target, SEL action);

extern UIButton *createImageButton(CGRect frame, NSString *imageName, id target, SEL action);
extern UIBarButtonItem * createBarImageButtonItem(NSString *iconName,id target,SEL action);
extern UIBarButtonItem * createBarButtonItem(NSString *title,id target,SEL action);

#endif /* ThemeFactory_h */
